package com.yj.springbootstudy.rest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {

    @GetMapping("/{id:\\d+}")
    public String test(@PathVariable Integer id){
        return "test:"+id;
    }

}
